import request from "../utils/request";
export const getArticles = (params) => {
  return request({
    url: "/mp/articles",
    method: "get",
    params,
    headers: {
      Authorization:
        "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3d3dy5pdGNhc3QuY24vIiwic3ViIjoiZTY0MzFiN2QtMjQ3Zi00N2U3LWIwZmItZTg0YTUwZGE3OWFjIiwianRpIjoiMTNlYjBhMDctNjQyMi00NWY2LWI4MWQtN2Q3MmZjODJlMWYyIiwiaWF0IjoxNjgyMDMyMTY5LCJleHAiOjE2ODIwMzU3Njl9.d42R1nXVcGmT9WgdcxdbSNR_ZFK4U6T_QLpQ6z3oOvw",
    },
  });
};
export const delArticle = (id) => {
  return request.delete(`/mp/articles/${id}`);
  // return request.delete({
  //   url: `/mp/articles/${id}`,
  //   // headers: {
  //   //   Authorization:
  //   //     "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3d3dy5pdGNhc3QuY24vIiwic3ViIjoiZTY0MzFiN2QtMjQ3Zi00N2U3LWIwZmItZTg0YTUwZGE3OWFjIiwianRpIjoiMTNlYjBhMDctNjQyMi00NWY2LWI4MWQtN2Q3MmZjODJlMWYyIiwiaWF0IjoxNjgyMDMyMTY5LCJleHAiOjE2ODIwMzU3Njl9.d42R1nXVcGmT9WgdcxdbSNR_ZFK4U6T_QLpQ6z3oOvw",
  //   // },
  // });
};
